<div nz-row>
  <div nz-col [nzOrder]="formOrder" [nzXXl]="12" [nzXl]="12" [nzLg]="24" [nzMd]="24" [nzSm]="24" [nzXs]="24">
    <form [nzLayout]="'horizontal'" nz-form [formGroup]="validateForm" (ngSubmit)="submitForm()">
      <nz-form-item>
        <nz-form-label nzSpan="12" nzFor="dangerMatterKey">重大危险源物质</nz-form-label>
        <nz-form-control nzSpan="12" nzErrorTip="重大危险源物质">
          <input nz-input formControlName="dangerMatterKey" id="dangerMatterKey" placeholder="重大危险源物质"/>
        </nz-form-control>
      </nz-form-item>
      <nz-form-item>
        <nz-form-label nzSpan="12" nzFor="symbol">符号</nz-form-label>
        <nz-form-control nzSpan="12" nzErrorTip="符号">
          <input nz-input formControlName="symbol" id="symbol" placeholder="符号"/>
        </nz-form-control>
      </nz-form-item>
      <nz-form-item>
        <nz-form-label nzSpan="12" nzFor="thresholdQuantity">临界量</nz-form-label>
        <nz-form-control nzSpan="12" nzErrorTip="临界量">
          <input nz-input formControlName="thresholdQuantity" id="thresholdQuantity" placeholder="临界量"/>
        </nz-form-control>
      </nz-form-item>
      <nz-form-item>
        <nz-form-label nzSpan="12" nzFor="beta">β值</nz-form-label>
        <nz-form-control nzSpan="12" nzErrorTip="β值">
          <input nz-input formControlName="beta" id="beta" placeholder="β值"/>
        </nz-form-control>
      </nz-form-item>
      <nz-form-item>
        <nz-form-label nzSpan="12" nzFor="dangerType">危险性类别</nz-form-label>
        <nz-form-control nzSpan="12" nzErrorTip="危险性类别">
          <input nz-input formControlName="dangerType" id="dangerType" placeholder="危险性类别"/>
        </nz-form-control>
      </nz-form-item>
      <nz-form-item *ngIf="AdminService.isAdmin" nz-row class="register-area">
        <nz-form-control [nzSpan]="12" [nzOffset]="12">
          <button nz-button nzType="primary">确定</button>
        </nz-form-control>
      </nz-form-item>
    </form>
  </div>
</div>
<ng-template #combineTpl let-control>
  <ng-container *ngIf="control.hasError('message')">{{control.errors['message']}}</ng-container>
  <ng-container *ngIf="control.hasError('required')">必填项</ng-container>
</ng-template>



